﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Kingdee.BOS.Core.CloudModel.Cloud
{
    public class SAL_OutStock
    {
        /// <summary>
        /// 
        /// </summary>
        public int FID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FBillTypeID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FDate { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FSaleOrgId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FCustomerID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FReceiverID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FStockOrgId { get; set; }
        /// <summary>
        /// 收货方
        /// </summary>
        public OrgBase FReceiveId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FSettleID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FPayerID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FOwnerTypeIdHead { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FIsTotalServiceOrCost { get; set; }
        /// <summary>
        /// 收货方地址
        /// </summary>
        public string FReceiveAddress { get; set; }
        /// <summary>
        /// 收货方电话
        /// </summary>
        public string FLinkPhone { get; set; }
        /// <summary>
        /// 收货方姓名
        /// </summary>
        public string FLinkMan { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public SAL_OutStockSubHeadEntity SubHeadEntity { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<SAL_OutStockEntity> FEntity { get; set; }
    }


    public class SAL_OutStockSubHeadEntity
    {
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FSettleCurrID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FSettleOrgID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FIsIncludedTax { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FLocalCurrID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FExchangeTypeID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? FExchangeRate { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FIsPriceExcludeTax { get; set; }
        /// <summary>
        /// 整单折扣额
        /// </summary>
        public decimal? FAllDisCount { get; set; }
    }


    public class SAL_OutStockEntity
    {
        /// <summary>
        /// 
        /// </summary>
        public string FRowType { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FMaterialID { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        //public string FMateriaModel { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FUnitID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? FRealQty { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? FPrice { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? FTaxPrice { get; set; }
        /// <summary>
        /// 税率
        /// </summary>
        public decimal? FEntryTaxRate { get; set; }
        /// <summary>
        /// 税额
        /// </summary>
        public decimal? FEntryTaxAmount { get; set; }
        /// <summary>
        /// 税额-本位币
        /// </summary>
        public decimal? FTaxAmount_LC { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FIsFree { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FOwnerTypeID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FOwnerID { get; set; }
        /// <summary>
        /// 订单单号
        /// </summary>
        public string FSoorDerno { get; set; }
        /// <summary>
        /// 源单类型
        /// </summary>
        public string FSrcType { get; set; }
        /// <summary>
        /// 源单编号
        /// </summary>
        public string FSrcBillNo { get; set; }
        /// <summary>
        /// 销售订单EntryId
        /// </summary>
        public int? FSOEntryId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FStockID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FStockStatusID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FSalUnitID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? FSALUNITQTY { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? FSALBASEQTY { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? FPRICEBASEQTY { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FOUTCONTROL { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FIsOverLegalOrg { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? FARNOTJOINQTY { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FCheckDelivery { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FSettleBySon { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public OrgBase FMaterialID_Sal { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FVmiBusinessStatus { get; set; }
        /// <summary>
        /// 关联关系
        /// </summary>
        public List<SAL_OutStockEntity_Link> FEntity_Link { get; set; }
    }


    public class SAL_OutStockEntity_Link
    {
        //转换规则
        public string FEntity_Link_FRuleId { get; set; }
        //源单表内码
        //public string FEntity_Link_FSTableId { get; set; }
        //源单表
        public string FEntity_Link_FSTableName { get; set; }
        //源单内码
        public int? FEntity_Link_FSBillId { get; set; }
        //源单分录内码
        public int? FEntity_Link_FSId { get; set; }
        //原始携带量
        public decimal? FEntity_Link_FBaseUnitQtyOld { get; set; }
        //修改携带量
        public decimal? FEntity_Link_FBaseUnitQty { get; set; }
        //原始携带量
        public decimal? FEntity_Link_FSALBASEQTYOld { get; set; }
        //修改携带量
        public decimal? FEntity_Link_FSALBASEQTY { get; set; }
        //原始携带量
        public decimal? FEntity_Link_FAuxUnitQtyOld { get; set; }
        //修改携带量
        public decimal? FEntity_Link_FAuxUnitQty { get; set; }
    }


}
